////////////////////////////////////////////////////////////////////////////
    // example of custom renderer functio
   var storeAvgDosage = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'name','dosage','unit'
        ],
        // load using script tags for cross domain, if the data in on the same domain as
        // this page, an HttpProxy would be better
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../prescription',
            doClass:'prescriptionsHer',
            herId:herId
        }),
        baseParams: {doClass:'prescriptionsHer'}
    });
    storeAvgDosage.setDefaultSort('dosage', 'asc');


    // create the Grid
    var gridAvgDosage = new Ext.grid.GridPanel({
        store: storeAvgDosage,
        shadow:true,
        autoScroll: true,
        border:false,
        columns: [
            {id:'AA',header: "方剂id", width: 90,sortable: true,  hidden:true,dataIndex: 'id'},
            {header: "方剂名称", width: 300,sortable: true, dataIndex: 'name'},
            {header: "剂量", width: 100, sortable: true, dataIndex: 'dosage'},
            {header: "单位", width: 100, sortable: false, dataIndex: 'unit'}
        ],
         iconCls:'icon-grid',
         width:600,
         autoHeight:true,
         sm: new Ext.grid.RowSelectionModel({singleSelect: false})
    });
   
    gridAvgDosage.on('rowclick', function(g, rowIdx, e) {
   			// g.selectRow(rowIdx,false);
		//updataCaContent({doClass:"content", chapterId:ds.getAt(rowIdx).data.id})
	});
    gridAvgDosage.render('gridAvgDosage');
    storeAvgDosage.load({params:{doClass:'containPre',herId:herId}});
  